<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div>hello</div>
    <script>
        let div=document.querySelector('div');
        div.onclick=function(){
            console.log("鼠标点击");
        }
        div.onmousemove=function(){
            console.log("鼠标移动");
        }
        div.onmouseenter=function(){
            console.log("鼠标进来了");
        }
        //console.dir(divs);
    </script>
</body>
</html>